package com.edu.vocstudy;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

public class VocabularyStudy extends Activity {
    private WordListManager wordListManager_;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        wordListManager_ = new WordListManager();
        
        ListView mainMenu = (ListView)findViewById(R.id.main_menu);
        mainMenu.setAdapter(new ListMenu(this, new ListMenuItem[] {
        		wordListManager_,
        		new FlashCards(wordListManager_),
        }));
        
        ListView preferenceMenu = (ListView)findViewById(R.id.preference_menu);
        preferenceMenu.setAdapter(new ListMenu(this, new ListMenuItem[] {
        		Preferences.getInstance(),
        }));
    }
}